<%@ page import="leihua.Person" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: LH
  Date: 2022/9/21
  Time: 12:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    //获取当前服务器中的用户
    ArrayList<Person> persons= (ArrayList<Person>) application.getAttribute("persons");
%>
<table>
    <thead>
    <tr>
        <th>姓名</th>
        <th>ip地址</th>
        <th>访问时间</th>
    </tr>
    </thead>
    <%
        for (Person person : persons){%>
    <tr>
        <td><%=person.getName()%> </td>
        <td><%=person.getIp()%></td>
        <td><%=person.getAccessTime()%></td>
    </tr>
      <% }   %>
</table>
</body>
</html>
